import {Component} from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {Http} from "@angular/http";
import {AboutPage} from "../about/about";

/**
 * Generated class for the LoginPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-login',
  templateUrl: 'login.html',
})
export class LoginPage {

  constructor(public navCtrl: NavController, public navParams: NavParams,private http:Http) {

    this.http.get('http://localhost:9527/api/purchase/order/list?state=fent&userId=1').subscribe(res =>
    {
      console.log(res.text())
    });
    console.log('http get');
  }


  login(){
    
    this.navCtrl.push(AboutPage)
  }

}
